﻿
@model IPagedList<RestaurantListViewModel>



<div id ="restaurantList">

    <div class="pagedList" data-otf-target="#restaurantList">
        
        
        @Html.PagedListPager(Model, page => Url.Action("Index", new {page}), 
        PagedListRenderOptions.MinimalWithItemCountText)


    </div>





@foreach (var item in Model)
{
    <div><h4>@item.Name</h4> 
    <div>@item.City, @item.Country</div>
    <hr />
<div>
    @item.CountOfReviews
</div>

   </div> 
}

    </div>